package one.Studenet;

import  java.util.ArrayList;

public class StudentUtility {
    private StudentUtility() {
    }
    public static int getMaxAge(ArrayList<Student> List) {
        int max = List.get(0).getAge();
        for (int i = 1; i < List.size(); i++) {
            if (List.get(i).getAge() > max) {
                max = List.get(i).getAge();
            }
        }
        return max;
    }
}
